package com.ruoyi.classes.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程管理对象 classes
 * 
 * @author ruoyi
 * @date 2025-05-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Classes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 老师ID */
    @Excel(name = "老师ID")
    private Long teacherId;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 课程名 */
    @Excel(name = "课程名")
    private String name;

    /** 老师名 */
    @Excel(name = "老师名")
    private String tname;

    /** 课程类型ID */
    @Excel(name = "课程类型ID")
    private Long tagsId;

    /** 状态(0下架 1上架) */
    @Excel(name = "状态(0下架 1上架)")
    private Long status;

    /** 描述(mongdb) */
    @Excel(name = "描述(mongdb)")
    private String description;

    /** 课程图片 */
    @Excel(name = "课程图片")
    private String image;

    /** 评论的ID */
    @Excel(name = "评论的ID")
    private Long commentId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 报名时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报名时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registrationTime;

    /** 报名截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报名截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deadTime;

    @TableField(exist = false)
    private String tagsName;


}
